package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.pojo.Permission;
import com.gitee.vo.PermissionVo;
import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IPermissionService extends IService<Permission> {

    Boolean hasPermission(HttpServletRequest request, Authentication authentication);

    List<PermissionVo> getMenuByUsername(String username);

    List<PermissionVo> getMenuTree();
}
